<?php

namespace app\yue\home;

use GatewayClient\Gateway;

class Chat extends GatewayWorker
{
    public function index()
    {
        
    }

    public function input()
    {
        $msg = input('msg');
        Gateway::sendToAll(\json_encode(['msg' => $msg, 'avatar' => $this->member_info['avatarUrl'], 'nickname' => $this->member_info['nickName']]), null);
    }

}
